const Axios = require('../utils/request');
const API = '/information';

// 查询前端页面位置配置
const getFrontPageLocationList = params => {
  return Axios.http({url: API + '/pageLocation/getFrontPageLocationList', data: params, method: 'GET'})
}
// 查询前端链接组件
const getFrontTextLinkList = params => {
  return Axios.http({url: API + '/textLink/getFrontTextLinkList', data: params, method: 'GET'})
}
// 前端查询菜单云组件
const getFrontMenuGroupList = params => {
  return Axios.http({url: API + '/menuGroup/getFrontMenuGroupList', data: params, method: 'GET'})
} 
// 查询前端轮播图组件
const getFrontCarouselChartList = params => {
  return Axios.http({url: API + '/carouselChart/getFrontCarouselChartList', data: params, method: 'GET'})
}
// 查询前端最新文章组件
const getFrontLatestArticleList = params => {
  return Axios.http({url: API + '/latestArticle/getFrontLatestArticleList', data: params, method: 'GET'})
}
// 查询前端最新文章组件新闻
const getFrontLatestArticleNewsPage = params => {
  return Axios.http({url: API + '/latestArticle/getFrontLatestArticleNewsPage', data: params, method: 'GET'})
}
// 查询前端新闻详情
const getFrontNews = params => {
  return Axios.http({url: API + '/news/getFrontNews', data: params, method: 'GET'})
}

module.exports = {
  getFrontPageLocationList,
  getFrontTextLinkList,
  getFrontMenuGroupList,
  getFrontCarouselChartList,
  getFrontLatestArticleList,
  getFrontLatestArticleNewsPage,
  getFrontNews,
}